package c926.xiaoduyun.xiaodu.mservice;

import kd.bos.bill.AbstractBillPlugIn;
import kd.bos.servicehelper.user.UserServiceHelper;

import java.util.EventObject;


public class DemoPlugin extends AbstractBillPlugIn {

    @Override
    public void afterCreateNewData(EventObject e) {
        super.afterCreateNewData(e);
        long currentUserId = UserServiceHelper.getCurrentUserId();
        long orgId = UserServiceHelper.getUserMainOrgId(currentUserId);
        this.getModel().setValue("c926_orgfield",orgId);
    }
}
